!!!###!!!title=201-How to configure the scope of the crosshair auxiliary line——VisActor/VChart FAQ documents!!!###!!!

In the combination chart, how to configure the scope of the cross auxiliary line, within a certain sub-figure, or on the entire combination chart?

Problem Description

I would like to ask, is there a way to display the cross auxiliary lines in all sub-tables of the perspective combination chart?

solution

On VChart, crosshair supports this capability. You only need to declare the bound axis index for the crosshair in the corresponding direction. If not declared, all axes corresponding to the crosshair position will be bound by default.

As shown in the figure below, we expect the crosshair on the y-axis to act on the entire figure. We only need to declare the following configuration

If you want to apply it to a certain subgraph, you only need to configure bindingAxesIndex as the axis index corresponding to the subgraph.

Result display